<div id="paging">

<div align="right">
	{if $is_coach eq '0'}
	<!--label>Become a Coach :</label> <input type="radio" name="user_type" value="1" onclick="coach_game()" /-->
	<a class="button" href="coach_game_update.php?profile=Y"><span>Become a Coach</span></a>
	{/if}
	{if $is_partner eq '0'}
	<a class="button" href="training_partner_game_update.php?profile=Y">Become Training Partner</a>
	<!--label>Become a Training Partner :</label> <input type="radio" name="user_type" value="3" onclick="tp_game()"/-->
	{/if} 
</div>
<div class="content">	
		
		{* Start loading Tabs *}
		{include file='user_tabs.tpl' active_tab='coach'}
		{* End loading Tabs *}
		
		<div class="clear"></div>
		<div class="tabular-content"> 
		
			<div class="tab_sub">
            	<ul>
					<li><a href="calendar.php">Availability</a></li>
                    <li><a href="javascript:;" class="active">My Games</a></li>
					<li><a href="add_lesson.php" >My lessons</a></li>
                </ul>
			</div>
			<div class="total-message">
			<a href="coach_game_update.php" class="button">Add Game</a>&nbsp;
			<strong>Total Games : {$Numcoachgame}</strong>&nbsp;&nbsp;
			</div> 
			<div class="clear"></div>                     
			<div>
	  
				{if $Numcoachgame >0}
					{section name=gameRow loop=$CoachgameArr}
						<div class="profile-list" {if $smarty.section.gameRow.index%2 neq 0}style="background-color:#f2f2f2;"{/if}>
							<div class="game-details" {if $smarty.section.gameRow.index%2 neq 0}style="background-color:#f2f2f2;"{/if} >
								<h2>{$CoachgameArr[gameRow].game}</h2>
								<div class="coach_game_details" style="margin-top: 10px;margin-left: 10px;">
									<dl>
										<dt>1hr:</dt>
										<dd>{if $CoachgameArr[gameRow].rate_A neq ''}{$CoachgameArr[gameRow].rate_A}pts{/if}</dd>
									</dl>
									<dl>
										<dt>2hr:</dt>
										<dd>{if $CoachgameArr[gameRow].rate_B neq ''}{$CoachgameArr[gameRow].rate_B}pts{/if}</dd>
									</dl>
									<dl>
										<dt>3hr:</dt>
										<dd>{if $CoachgameArr[gameRow].rate_C neq ''}{$CoachgameArr[gameRow].rate_C}pts{/if}</dd>
									</dl>
									{if $CoachgameArr[gameRow].is_ladder eq 'Y'}
									<dl>
										<dt>Ladder:</dt>
										<dd>{if $CoachgameArr[gameRow].ladder neq ''}{$CoachgameArr[gameRow].ladder}{else}N/A{/if}</dd>
									</dl>
									{/if}
									{if $CoachgameArr[gameRow].is_server eq 'Y'}
									<dl>
										<dt>Server:</dt>
										<dd>{if $CoachgameArr[gameRow].server}{$CoachgameArr[gameRow].server}{else}N/A{/if}</dd>
									</dl>
									{/if}
									{if $CoachgameArr[gameRow].is_region eq 'Y'}
									<dl>
										<dt>Region:</dt>
										<dd>{if $CoachgameArr[gameRow].region}{$CoachgameArr[gameRow].region}{else}N/A{/if}</dd>
									</dl>
									{/if}
									
									{if $CoachgameArr[gameRow].is_race eq 'Y'}
									<dl>
										<dt>Race:</dt>
										<dd>{if $CoachgameArr[gameRow].region}{$CoachgameArr[gameRow].region}{else}N/A{/if}</dd>
									</dl>
									{/if}
									
									{if $CoachgameArr[gameRow].is_rating eq 'Y'}
									<dl>
										<dt>Rating:</dt>
										<dd>{if $CoachgameArr[gameRow].rating}{$CoachgameArr[gameRow].rating}{else}N/A{/if}</dd>
									</dl>
									{/if}
									<dl>
										<dt>Experience:</dt>
										<dd>{if $CoachgameArr[gameRow].experience neq ''}{$CoachgameArr[gameRow].experience}{else}N/A{/if}</dd>
									</dl>
								</div>
								
								<p class="clear"></p>
								<div style="height:10px;"></div>
								<div class="clear"></div>
									
							</div>
							<div class="clear"></div>
							
							<div style="float:right; margin-bottom: 15px; margin-right: 90px">
								<div class="" style="float:right;">
									<a class="button" href="#" onclick="ConfirmDelete('{$page_name}?action=del','{$CoachgameArr[gameRow].user_game_id}','{$CoachgameArr[gameRow].game}','Your selected game:: ')">
										Delete
									</a>
								</div>
								<div class="" style="margin-right:5px;float:right;">
									<a class="button" href="coach_game_update.php?user_game_id={$CoachgameArr[gameRow].user_game_id}">
										Edit
									</a>
								</div>
							</div>
							<div class="clear"></div>
						</div>
					{/section}
				{else}
					<div class="profile-list">
						<div class="game-details"> No game found </div>
					</div>
				{/if}
			  <div class="clear"></div>
			</div>
		</div>
   </div>
 </div>     